@import '../../res/theme/xxhz.scss';

.carRentalList {
  padding-bottom: calc(env(safe-area-inset-bottom) + 20px);

  .car-search {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9999;

    .at-search-bar {
      padding-left: 0 !important;
      padding-right: 0 !important;
      position: relative;
    }

    .at-search-bar__placeholder-wrap {
      width: 100%;
    }

    .at-search-bar__placeholder, .at-icon-search {
      color: #666;
    }

    .at-search-bar::before {
      content: ' ';
      background-color: #aaa;
      width: 1Px;
      height: 16Px;
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translate(0, -50%);
      z-index: 9999;
    }

    .at-search-bar__input-cnt {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }

    .at-search-bar::after {
      content: none;
    }

    .at-search-bar {
      width: 100%;
    }

    .at-search-bar__placeholder-wrap {
      justify-content: flex-start !important;
    }
  }

  .triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid $mainColor;
  }

  .triangle-top {
    transform: rotate(180deg);
  }

  .car-list-box {
    margin-top: 20px;

    .car-info-detail {
      display: flex;
      align-items: center;
      padding: 0 30px;

      .go-car-detail {
        font-size: 22px;
        color: #333;
        font-weight: bold;
      }

      .car-info-detail-left, img {
        margin-right: 20px;
        width: 110Px;
        max-width: 100%;
        height: 110Px;
        border-radius: 12px;
      }

      .car-info-detail-right {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: calc(100% - 100Px - 14px);
        min-height: 70Px;
      }

      .car-config-info {
        position: relative;
        top: -4px;
        display: flex;
        align-items: baseline;
        justify-content: space-between;

        .price-box {
          white-space: nowrap;
        }

        .car-config-intro {
          font-size: 28px;
          color: #666;
        }

        .car-symbol, .car-price {
          font-family: Avenir;
          font-weight: bold;
          color: $color-price;
          position: relative;
          top: 1Px;
        }

        .car-symbol {
          font-size: 22px;
        }

        .car-price {
          letter-spacing: 1px;
          font-size: 38px;
        }

        .car-unit {
          margin-left: 5px;
          color: #999;
          font-size: 20px;
        }
      }
    }

    .car-info {
      border-bottom-right-radius: inherit !important;
      border-bottom-left-radius: inherit !important;
    }

    .carRentalDetailWrapperHidden {
      visibility: hidden;
    }

    .icon-read-more {
      color: $mainColor;
    }

    .carRentalDetailWrapper {
      border-bottom-right-radius: 8px !important;
      border-bottom-left-radius: 8px !important;

      .car-list-item-detail {
        position: relative;
        border-radius: inherit !important;
        box-shadow: inherit !important;
        margin-top: 0 !important;
      }

      .car-list-item-detail:last-child {
        padding-bottom: 0 !important;
      }

      .car-list-item-detail::after {
        content: "";
        position: absolute;
        -webkit-transform-origin: center;
        transform-origin: center;
        box-sizing: border-box;
        pointer-events: none;
        left: 0;
        width: 100%;
        bottom: 0;
        border-top: 1Px solid #d6e4ef;
        -webkit-transform: scaleY(.5);
        transform: scaleY(.5);
      }

      .car-list-item-detail {
        padding-bottom: 30px !important;
      }

      .car-list-item-detail {
        padding-top: 30px !important;
      }

      .car-list-item-detail:last-child::after {
        content: none !important;
      }

      .car-big-name {
        font-size: 32px !important;
        display: -webkit-box !important;
        /*! autoprefixer: ignore next */
        -webkit-box-orient: vertical;
        /* autoprefixer: on */
        -webkit-line-clamp: 2;
        overflow: hidden;
        padding-right: 0 !important;
        white-space: pre-line !important;
      }
    }

    .car-list-item {
      background-color: #fff;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
      border-radius: 8px;
      padding: 26px 0;
      margin: 20px 20px 0;

      .car-title {
        display: flex;
        align-items: center;
        font-weight: bold;
        color: #000;
        font-size: 30px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
      }

      .car-name {
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .car-info {
        display: flex;
        justify-content: space-between;
        margin-top: 18px;
        font-size: 26px;

        .car-info-distance-time {
          color: #999;
        }

        .car-info-type {
          display: flex;
          align-items: center;
          white-space: nowrap;
          color: $mainColor;
        }
      }
    }

    .car-info-line {
      margin: 0 8px;
    }
  }

  .listNull {
    width: 100%;
    height: 75vw;
    text-align: center;
    overflow: hidden;

    image, .taro-img {
      width: 295px;
      height: 295px;
      margin: 86px auto 35px;
    }

    .text {
      font-size: 24px;
      color: #666
    }
  }

  .lay-out-cla {
    .layout-header__title {
      padding: 0 20px;
      margin-right: 30px;
      text-align: center;
    }

    .at-float-layout__container {
      min-height: inherit;
      max-height: 90vh;
      border-top-left-radius: 22px;
      border-top-right-radius: 22px;
    }

    .layout-header {
      background: #fff;
      border-top-left-radius: 22px;
      border-top-right-radius: 22px;
    }
  }

  .layout-body {
    padding: 0;
  }

  .car-list-item-detail {
    margin: 0 !important;
  }

  .view-inline {
    margin-right: 6px;
    display: inline;
  }

}
